﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using ERP_RORZE.Product.MO;

namespace ERP_RORZE.Product.Forms
{
    public partial class Frm_MO : DevExpress.XtraEditors.XtraForm
    {
        ctrlMOList ctrlMO = new ctrlMOList();
        ctrlMOActualPrice ctrlMOActual = new ctrlMOActualPrice();
        ctrlMOFinish ctrlMOFinish = new ctrlMOFinish();
        ctrlMOMaterial ctrlMOMat = new ctrlMOMaterial();
        ctrlMONGCheckDetail ctrlMONGcheckdetail = new ctrlMONGCheckDetail();
        ctrlMONGCheckInput ctrlMONGcheckinput = new ctrlMONGCheckInput();
        ctrlMONoUpdate ctrlMONoupdate = new ctrlMONoUpdate();
        ctrlMOOption ctrlMOoption = new ctrlMOOption();
        ctrlMOOptionStatus ctrlMOoptionstatus = new ctrlMOOptionStatus();
        ctrlMOQtyChange ctrlMOQtychange = new ctrlMOQtyChange();
        ctrlMOQtyStatus ctrlMOQtystatus = new ctrlMOQtyStatus();
        ctrlMOSelect ctrlMOselect = new ctrlMOSelect();
        ctrlMOSheetView ctrlMOsheetview = new ctrlMOSheetView();
        ctrlMOStart ctrlMOstart = new ctrlMOStart();
        public Frm_MO()
        {
            InitializeComponent();
        }

        private void navItemMOList_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcMO.Panel2.Controls.Clear();
            spcMO.Panel2.Controls.Add(ctrlMO);
            ctrlMO.Dock = DockStyle.Fill;
        }

        private void navItemMONoUpdate_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcMO.Panel2.Controls.Clear();
            spcMO.Panel2.Controls.Add(ctrlMONoupdate);
            ctrlMONoupdate.Dock = DockStyle.Fill;
        }

        private void navItemMOSelect_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcMO.Panel2.Controls.Clear();
            spcMO.Panel2.Controls.Add(ctrlMOselect);
            ctrlMOselect.Dock = DockStyle.Fill;
        }

        private void navItemSheetView_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcMO.Panel2.Controls.Clear();
            spcMO.Panel2.Controls.Add(ctrlMOsheetview);
            ctrlMOsheetview.Dock = DockStyle.Fill;
        }

        private void navItemMOMaterial_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcMO.Panel2.Controls.Clear();
            spcMO.Panel2.Controls.Add(ctrlMOMat);
            ctrlMOMat.Dock = DockStyle.Fill;
        }

        private void navItemMOStart_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcMO.Panel2.Controls.Clear();
            spcMO.Panel2.Controls.Add(ctrlMOstart);
            ctrlMOstart.Dock = DockStyle.Fill;
        }

        private void navItemMOOption_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcMO.Panel2.Controls.Clear();
            spcMO.Panel2.Controls.Add(ctrlMOoption);
            ctrlMOoption.Dock = DockStyle.Fill;
        }

        private void navItemMOQtyStatus_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcMO.Panel2.Controls.Clear();
            spcMO.Panel2.Controls.Add(ctrlMOQtystatus);
            ctrlMOQtystatus.Dock = DockStyle.Fill;
        }

        private void navItemMOOptionStatus_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcMO.Panel2.Controls.Clear();
            spcMO.Panel2.Controls.Add(ctrlMOoptionstatus);
            ctrlMOoptionstatus.Dock = DockStyle.Fill;
        }

        private void navItemMOQtyChange_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcMO.Panel2.Controls.Clear();
            spcMO.Panel2.Controls.Add(ctrlMOQtychange);
            ctrlMOQtychange.Dock = DockStyle.Fill;
        }

        private void navItemMOFinish_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcMO.Panel2.Controls.Clear();
            spcMO.Panel2.Controls.Add(ctrlMOFinish);
            ctrlMOFinish.Dock = DockStyle.Fill;
        }

        private void navItemMOActualPrice_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcMO.Panel2.Controls.Clear();
            spcMO.Panel2.Controls.Add(ctrlMOActual);
            ctrlMOActual.Dock = DockStyle.Fill;
        }

        private void navItemMONGCheckDetail_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcMO.Panel2.Controls.Clear();
            spcMO.Panel2.Controls.Add(ctrlMONGcheckdetail);
            ctrlMONGcheckdetail.Dock = DockStyle.Fill;
        }

        private void navItemMONGCheckInput_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcMO.Panel2.Controls.Clear();
            spcMO.Panel2.Controls.Add(ctrlMONGcheckinput);
            ctrlMONGcheckinput.Dock = DockStyle.Fill;
        }


    }
}